<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
    <title>Celibax admin2</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Language" content="fr" />
    <meta name="description" LANG="en" content="Celibax is an online betting system. It will be possible to bet on anything with your friends.
            It was initially designed to bet on which of your friends would be the first to get laid, but you can also use it for sporting events, life events or whatever you can think of!
            You cannot play real money here, the Celibax money is the Chochoro and the shame of losing!">
            
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- LIB INCLUDES -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/jquery.min1.7.2.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/extendAjaxForCSRF.js"></script>
    <!-- the following include allow internet explorer to keep the same display than the other browser -->
    <!--[if lt IE 10]>
	    <script type="text/javascript" src="{{ STATIC_URL}}javascript/CSS3PIE.js"></script>
    <![endif]-->


    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- STYLE AND PAGE STRUCTURE INCLUDES -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL}}css/structure.css">
    <script language="JavaScript" type="text/javascript" src="{{ STATIC_URL}}javascript/headerStructure.js"></script>
    
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- Functional includes-->
    <!-- -------------------------------------------------------------------------------------------- -->
    <!--<script type="text/javascript" src="{{ STATIC_URL}}javascript/killAssetButton.js"></script>-->
 
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- INITIALISATION OF THE PAGE -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/submitUtils.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/saveAndCreateRoom.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/coreOnLoad.js"></script>

</head>

<body>
    
    {% load argTemplates %}

    <!-- create the header-->
    <script language="JavaScript" type="text/javascript">makeHeader(
        'adminMkt',
        3,
        '{{userName}}',
        '{{betroom.name}}',
        {{betroom.roomType}},//room type
        {{betroom.status}},
        '{{STATIC_URL}}'
     );</script>
    <noscript> <p> Activez Javascript pour voir le menu !</p></noscript>

   <!-- create the waiting div-->
   <script language="JavaScript" type="text/javascript">create_hidden_waiting_div( {{STATIC_URL}} )</script>
   <noscript> <p> Activez Javascript pour voir le menu !</p></noscript>
   
    <div class="section">  <h1>Save and create base</h1> </div>
    
    <!--allow to save the data base-->
    <div class="section">
        <h2>Save base</h2>
        <div align="left">
        Pressing this button will save the base to text files. The same action is taken before deleting an asset.
        Once those files have been generated, you will be able to re-create the base from the file.
        This is used when changing the version. Or before an asset is deleted so that you will be able to regenerate 
        the base as before the deletion if it has been an illegal delete.
        Before a delete, the base is automaticaly saved (and transactions suspended)
        You will have access to the two last saved set of files. "create base" uses the last set.
        To use the before the last set, contact your adminsistrator.
        </div>
        <input class="myRoundCorners myLeft" type="submit" value="save base" onclick="saveRoom();"  />
    </div>

    <!--allow to create the data base-->
    <div class="section">
        <h2>Create base</h2>
        <div align="left">
        Pressing this button will clean the current data base and update it accordingly to the last saved text files.
        Those text files would have been generated when pressing "save base" or automaticaly when deleting an asset.
        </div>
        <input class="myRoundCorners myLeft" type="submit" value="create base" onclick="createRoom();"  />
    </div>
    
    <div>
        <script language="JavaScript" type="text/javascript">footer()</script>
    </div>
    
</body>
</html>
